function decode(data,sPos,ePos)
    local str = string.sub(data,sPos,ePos)
    local value = tonumber(str,16)
    return value
end
 
function process(data)
    local temValue = decode(data,1,2)
    local humValue = decode(data, 3,4)
 
    return "temperature: " .. tostring(temValue) .. " hum: " .. tostring(humValue)
end